-
Notifications
You must be signed in to change notification settings - Fork 362
action: Add dialog to markNarrowAsRead for CombinedFeedNarrow view #2006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
chrisbobbe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Comments below.
lib/widgets/actions.dart
Outdated
| static Future<void> markNarrowAsRead(BuildContext context, Narrow narrow) async { | ||
| final zulipLocalizations = ZulipLocalizations.of(context); | ||
|
|
||
| if (narrow is CombinedFeedNarrow) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue asks for the dialog to be shown in more than just the combined-feed narrow: #1858 (comment)
1de2a51 to
970aee6
Compare
|
@chrisbobbe Thanks for reviewing! Squash the 4 commits into one.
|
That's not accurate. We should show the dialog when the narrow is not a conversation narrow. A "conversation narrow" is a topic narrow or a DM narrow; see e.g. the top of the Zulip Help Center "Reading conversations" article. These details are provided for you in the issue description and discussions linked from there. In the zulip-flutter codebase, there are multiple kinds of |
f51a3f4 to
9b5a5e3
Compare
A confirm ActionDialog is added to prevent accidentally marking many messages as read in CombinedFeedNarrow view. Also, adjust existing MarkAsReadWidget tests to account for the added confirmation dialog. Fixes: part of zulip#1858
Added dialog to prevent accidentally marking many messages as read in ChannelNarrow View. Also, adjust existing MarkChannelAsReadButton tests to account for the added confirmation dialog. Fixes: part of zulip#1858
f900adb to
f6a1cee
Compare
f6a1cee to
712aa85
Compare
Fixes: #1858
Still picture
Screencasts
combined feed narrow
combined_feed_sc.mp4
channel narrow
channel_sc.mp4
mentions narrow
mention_sc.mp4